#!D:/CODE/python
# -*- coding: utf-8 -*-
# @Time : 2020/5/26 15:15
# @Author : Alexdong
# @Site : 
# @File : python调用c.py
# @Software: PyCharm
# Functional description:

from ctypes import *
from threading import Thread

# 加载动态库
lib = cdll.LoadLibrary('./libdead_loop.so')

# 创建子线程，让其执行C语言编写的函数，
t = Thread(target=lib.DeadLoop)
t.start()

while True:
    pass